<?php

namespace app\api\controller;

class Sorting {

    public function getSort(){
        $Sorting = M('sorting');
        $list = $Sorting->where(['pid'=>I('post.sid/d')])->select();
        if(!$list){
            return ;
        }
        if($list){
            return json_encode($list);
        }else{
            return json_encode(['error'=>'null']);
        }
    }
}
